//
//  MULThirdPartInfo.m
//  UniLoginSDKExample
//
//  Created by xiaofeng on 14-2-18.
//  Copyright (c) 2014年 Mafengwo Inc. All rights reserved.
//

#import "MULThirdPartInfo.h"

@implementation MULThirdPartInfo

+ (NSString*)thirdPartStrFromType:(MULLoginThirdPartType)type;
{
    NSString *venderStr = nil;
    switch (type)
    {
        case kThirdPart_Weibo:
            venderStr = @"wb";
            break;
        case kThirdPart_Qzone:
            venderStr = @"qz";
            break;
        case kThirdPart_Renren:
            venderStr = @"Rren";
            break;
        case kThirdPart_WeChat:
            venderStr = @"weixin";
            break;
        default:
            break;
    }
    return venderStr;
}

- (NSString*)sourceStr
{
    if (_sourceStr == nil)
    {
        _sourceStr = [[self.class thirdPartStrFromType:self.sourceType] copy];
    }
    return _sourceStr;
}
@end
